app.controller("loginController",function($scope,userService){
	$scope.loginSubmit=function(){
		var user={};
		user.username=$scope.username;
		user.pwd=$scope.password;
		userService.login(JSON.stringify(user)).success(function(response){
			console.log(response);
			if(response.status=="success"){
				location.href="./1index.html";
			}
		})
	}
})